// src/components/todo-list-statistics.vue

<template>
  <div>我是todo-list-statistics组件：{{ todoLength }}</div>
</template>

<script>
import { defineComponent } from "vue";

export default defineComponent({
    name: 'TodoListStatistics',
    inject: ['todoLength'],
    created() {
        console.log(`注入的属性为：${this.todoLength.value}`)
    }
})
</script>